﻿using Dapper.Contrib.Plus;
using System;
using System.Collections.Generic;
using System.Text;

namespace Auth.Models.System
{
    /// <summary>
    /// 数据字典查询条件类
    /// </summary>
    public class SettingModel
    {
        /// <summary>
        /// 分页条件
        /// </summary>
        public Pagination Pagination { get; set; }

        /// <summary>
        /// 上级字典值
        /// </summary>
        [Conditional(ConditionalType.Equal)]
        [FieldName("parent_value")]
        public string ParentValue { get; set; }

        /// <summary>
        /// 字典文本
        /// </summary>
        [Conditional(ConditionalType.Like)]
        [FieldName("text")]
        public string Text { get; set; }

        /// <summary>
        /// 字典值
        /// </summary>
        [Conditional(ConditionalType.Equal)]
        [FieldName("value")]
        public string Value { get; set; }
    }
}
